<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <meta http-equiv="Cache-Control" content="no-siteapp"/>
    <!--[if lt IE 9]>
    <script type="text/javascript" src="/tb_hello/Public/Admin/js/html5.js"></script>
    <script type="text/javascript" src="/tb_hello/Public/Admin/js/respond.min.js"></script>
    <script type="text/javascript" src="/tb_hello/Public/Admin/js/PIE_IE678.js"></script>
    <![endif]-->

    <link type="text/css" rel="stylesheet"
          href="/tb_hello/Public/Admin/css/H-ui.css"/>
    <link type="text/css" rel="stylesheet"
          href="/tb_hello/Public/Admin/css/H-ui.admin.css"/>
    <link type="text/css" rel="stylesheet"
          href="/tb_hello/Public/Admin/font/font-awesome.min.css"/>
    <!--[if IE 7]>
    <link href="/tb_hello/Public/font/font-awesome-ie7.min.css" rel="stylesheet" type="text/css"/>
    <![endif]-->

    <link href="/tb_hello/Public/Admin/css/bootstrap.css" rel="stylesheet" type="text/css"/>
    <title>系统设置</title>
</head>
<body>
<div class="pd-20" style="padding-top:50px;" >
    <form action="/tb_hello/index.php/Admin/setsys" method="post" class="Huiform" >
    <table
            class="table table-border table-bordered table-hover table-bg table-sort" style="width: 100%;">
        <thead>
        <tr class="text-c">
            <th width="10">序号</th>
            <th width="30">操作说明</th>
            <th width="100">操作</th>
        </tr>
        </thead>
        <tbody>
            <tr class="text-c">
                <td>1</td>
                <td>版本号:</td>
                <td>
                    <input type="number" value="<?php echo ($sys["version"]); ?>" name="version" datatype="n" nullmsg="版本号必须为数字">
                </td>
         </tr>
            <tr class="text-c">
                <td>2</td>
                <td>下载地址:</td>
                <td>
                    <input type="url" value="<?php echo ($sys["address"]); ?>" name="address" datatype="*" nullmsg="下载地址不能为空">
                </td>
            </tr>

            <tr class="text-c">
                <td>3</td>
                <td>跟新设置:</td>
                <td>
                    <div class="checkbox" >

                      <?php if($sys["type"] == 1): ?><label> <input type="checkbox" value="1" name="type" checked> 强制跟新 </label>
                          <?php else: ?>
                            <label> <input type="checkbox" value="1" name="type" > 强制跟新</label><?php endif; ?>


                        </div>
                </td>
            </tr>




        </tbody>
    </table>
<div align="center">
        <input type="submit" class="btn btn-success" name="确认" style="width: 50%;" >
    </div>
</form>


</div>
<footer>

</footer>
<script type="text/javascript" src="/tb_hello/Public/Admin/js/jquery.min.js"></script>

<script type="text/javascript" src="/tb_hello/Public/Admin/js/Validform_v5.3.2_min.js"></script>
<script type="text/javascript" src="/tb_hello/Public/Admin/js/H-ui.js"></script>
<script type="text/javascript" src="/tb_hello/Public/Admin/js/H-ui.admin.js"></script>

<script type="text/javascript" src="/tb_hello/Public/Admin/layer/layer.min.js"></script>

<script type="text/javascript">
    $(".Huiform").Validform();
</script>

<?php if($addtype == 1): ?><script type="text/javascript">
        alert("修改成功");
    </script><?php endif; ?>
</body>
</html>